package www.tijden;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;

import mda.type.ITimeTablePage;
import mda.type.comp.TimeTableSlot;

import org.joda.time.DateTime;

public class Tijden implements ITimeTablePage 
{

	@Override
	public String getId() {
		return "tijden";
	}

	@Override
	public String getTitle() {
		return "Tijden";
	}

	@Override
	public List<TimeTableSlot> getTimeSlots() 
	{
		List<TimeTableSlot> r = new ArrayList<TimeTableSlot>();
		
		r.add(new TimeTableSlot("Aaa", time(SAT_12, 30), 60, 1, 1));
		r.add(new TimeTableSlot("BVbbbv", time(SAT_12, 90), 60, 1, 2));
		r.add(new TimeTableSlot("Cvf hjjh", time(SAT_12, 180), 90, 2, 1));
		r.add(new TimeTableSlot("Kujhj", time(SAT_12, 270), 45, 1, 3));
		r.add(new TimeTableSlot("Loio yyhh", time(SAT_12, 30), 60, 2, 1));

		r.add(new TimeTableSlot("Bna", time(SUN_12, 30), 50, 1, 1));
		r.add(new TimeTableSlot("Bklbbbv", time(SUN_12, 90), 60, 1, 2));
		r.add(new TimeTableSlot("Cvf hjjh", time(SUN_12, 180), 90, 2, 1));
		r.add(new TimeTableSlot("Kujhj", time(SUN_12, 270), 45, 1, 2));
		r.add(new TimeTableSlot("Loio yyhh", time(SUN_12, 30), 60, 2, 1));

		return r;
	}
	
	private static final DateTime SAT_12 = new DateTime("2010-06-15 12:00:00");
//	private static final DateTime SAT_18 = new DateTime("2010-06-15 18:00:00");
	private static final DateTime SUN_12 = new DateTime("2010-06-16 12:00:00");
//	private static final DateTime SUN_18 = new DateTime("2010-06-16 18:00:00");
	
	private static final Calendar now = Calendar.getInstance();

	private Date time(DateTime dt, int plusMins)
	{
		DateTime dt2 = dt.plusMinutes(plusMins);
		return dt2.toDate();
	}
}
